<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=LATIN1" pageEncoding="LATIN1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<s:head theme="ajax"/>

<link href="<s:url value="/style/default.css"/>" rel="stylesheet" type="text/css" />
<title>billiards league</title>

<script type="text/javascript" language="javascript">
function preencherMembers(id) {

	toOpen="/league/listMembers2.action";
	
	retrieveUrl(toOpen);
}
</script>


</head>

<body>
<table width="100%" border="0">
	<tr>
		<td colspan="2">
		<div id="header">
		<h1><a href="#">billiards<span>league</span></a></h1>
		<h2><a href="#">management system</a></h2>
		</div>
		</td>
	</tr>
	<tr>
		<td width="20%" valign="top">
			<div id="sidebar">
				<ul>
					<li>
						<h2>User</h2>
						<ul>
							<li><img src="<s:url value="/image/jacques-sauve.jpg"/>"width="150" height="200" /></li>
							<li>Account Info</li>
						  	<li><s:property value="sessionUser.firstName" /></li>
							<li><s:property value="sessionUser.email"/></li>
							<li><s:property value="sessionUser.role"/></li>
							<s:url id="edit" namespace="/user" action="editMe">
								<s:param name="email" value="sessionUser.email"/>
							</s:url>
							<li><s:a href="%{edit}">Edit Profile</s:a></li>
						</ul>
					</li>
				</ul>		
			</div>
			
			
			<!-- start sidebar --> <tiles:insertAttribute name="sidebar" /> <!-- end sidebar -->
		</td>
		
		<td width="80%" valign="top">
			<!-- start content --> <tiles:insertAttribute name="content" /> <!-- end content -->
		</td>
	</tr>
	<tr>
		<td colspan="2"><!-- start footer -->
		<div id="footer">
		<p id="legal">&copy;2008 All Rights Reserved.</p>
		</div>
		<!-- end footer --></td>
	</tr>
</table>


</body>
</html>
